#!/bin/bash

~/Desktop/xjbg/SDK-gcc/build.sh
cp ~/Desktop/xjbg/SDK-gcc/bin/cdn ~/Desktop/xjbg/case_example/

./cdn case0.txt topo0.txt > case0.dump
./resultTest case0.txt topo0.txt 

./cdn case1.txt topo1.txt > case1.dump
./resultTest case1.txt topo1.txt 

./cdn case2.txt topo2.txt > case2.dump
./resultTest case2.txt topo2.txt 

./cdn case3.txt topo3.txt > case3.dump
./resultTest case3.txt topo3.txt 

./cdn case4.txt topo4.txt > case4.dump
./resultTest case4.txt topo4.txt 

./cdn case5.txt topo5.txt > case5.dump
./resultTest case5.txt topo5.txt

./cdn case6.txt topo6.txt > case6.dump
./resultTest case6.txt topo6.txt

./cdn case7.txt topo7.txt > case7.dump
./resultTest case7.txt topo7.txt

./cdn case8.txt topo8.txt > case8.dump
./resultTest case8.txt topo8.txt

./cdn case9.txt topo9.txt > case9.dump
./resultTest case9.txt topo9.txt

cat *.dump | grep used

cat *.dump | grep best
